#file name: example.launch.py
import os
import launch
from ament_index_python.packages import get_package_share_directory
from launch.substitutions import EnvironmentVariable
from launch.substitutions import LaunchConfiguration
from launch import LaunchDescription
from launch_ros.actions import Node
from launch.actions import DeclareLaunchArgument


def generate_launch_description():
    para_dir = os.path.join(get_package_share_directory('red'), 'config', 'cam.yaml')
    
    
    return LaunchDescription([
         Node(
            package='red',
            executable='pubr',
            
            name='pubr',
            parameters=None,
            remappings=None,
            arguments=None,
        ),       
        Node(
            package='red',
            executable='subr',
            
            name='subr',
            parameters=[para_dir],
            remappings=None,
            arguments=None,
            output='screen',
        ),
    ])


